package com.ruiysoft.controller.integral.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

import java.util.Objects;

/**
 * WxIntegralTradeListVo
 */
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2019-04-13T22:00:31.038+08:00")

public class WxIntegralTradeListVo   {
  @JsonProperty("id")
  private Long id = null;

  @JsonProperty("integral")
  private Long integral = null;

  @JsonProperty("tradeTime")
  private Long tradeTime = null;

  @JsonProperty("tradeType")
  private Integer tradeType = null;

  @JsonProperty("typeName")
  private String typeName = null;

  public WxIntegralTradeListVo id(Long id) {
    this.id = id;
    return this;
  }

  /**
   * id
   * @return id
  **/
  @ApiModelProperty(example = "1", value = "id")


  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public WxIntegralTradeListVo integral(Long integral) {
    this.integral = integral;
    return this;
  }

  /**
   * 交易积分额度
   * @return integral
  **/
  @ApiModelProperty(example = "1", value = "交易积分额度")


  public Long getIntegral() {
    return integral;
  }

  public void setIntegral(Long integral) {
    this.integral = integral;
  }

  public WxIntegralTradeListVo tradeTime(Long tradeTime) {
    this.tradeTime = tradeTime;
    return this;
  }

  /**
   * 交易时间时间戳
   * @return tradeTime
  **/
  @ApiModelProperty(example = "1234567112", value = "交易时间时间戳")


  public Long getTradeTime() {
    return tradeTime;
  }

  public void setTradeTime(Long tradeTime) {
    this.tradeTime = tradeTime;
  }

  public WxIntegralTradeListVo tradeType(Integer tradeType) {
    this.tradeType = tradeType;
    return this;
  }

  /**
   * 交易类型（1，充值，2，消费，3，退款）
   * @return tradeType
  **/
  @ApiModelProperty(example = "1", value = "交易类型（1，充值，2，消费，3，退款）")


  public Integer getTradeType() {
    return tradeType;
  }

  public void setTradeType(Integer tradeType) {
    this.tradeType = tradeType;
  }

  public WxIntegralTradeListVo typeName(String typeName) {
    this.typeName = typeName;
    return this;
  }

  /**
   * 交易类型（1，充值，2，消费，3，退款）
   * @return typeName
  **/
  @ApiModelProperty(example = "充值", value = "交易类型（1，充值，2，消费，3，退款）")


  public String getTypeName() {
    return typeName;
  }

  public void setTypeName(String typeName) {
    this.typeName = typeName;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    WxIntegralTradeListVo wxIntegralTradeListVo = (WxIntegralTradeListVo) o;
    return Objects.equals(this.id, wxIntegralTradeListVo.id) &&
        Objects.equals(this.integral, wxIntegralTradeListVo.integral) &&
        Objects.equals(this.tradeTime, wxIntegralTradeListVo.tradeTime) &&
        Objects.equals(this.tradeType, wxIntegralTradeListVo.tradeType) &&
        Objects.equals(this.typeName, wxIntegralTradeListVo.typeName);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, integral, tradeTime, tradeType, typeName);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class WxIntegralTradeListVo {\n");

    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    integral: ").append(toIndentedString(integral)).append("\n");
    sb.append("    tradeTime: ").append(toIndentedString(tradeTime)).append("\n");
    sb.append("    tradeType: ").append(toIndentedString(tradeType)).append("\n");
    sb.append("    typeName: ").append(toIndentedString(typeName)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

